var store = Ext.create('Ext.data.TreeStore', {
    root: {
        expanded: true,
        children: [
            { text: "客户账单", leaf: true, id:'CustomerMoneyListView' },
            { text: "供货商账单", leaf: true, id:'SupplierMoneyListView' },
            { text: "供货商报价", leaf: true, id:'' },
            { text: "员工工资表", leaf: true, id:'' },
            { text: "客户档案", leaf: true, id:'' },
            { text: "供货商档案", leaf: true, id:'' },
            { text: "费用支出", leaf: true, id:'' },
            { text: "基础数据", expanded: false, children: [
                { text: "客户片区", leaf: true, id:'' },
                { text: "供货商类别", leaf: true, id:'' },
                { text: "费用类别", leaf: true, id:'' },
            ] }
            
        ]
    }
});
var menuTree =  new Ext.tree.Panel({
	 width: '100%',
	 height: '400',
	 store: store,
	 border:false,
	 rootVisible: false,
	 listeners : {  
        'itemclick' : function(view,record){  
        	var id = record.raw.id;
        	var n = contentPanel.getComponent(id);
        	if (!n) {
        		n = contentPanel.add(eval('new Dt.m.'+id+'()'));
        	};
        	contentPanel.setActiveTab(n);        	           
        }  
	 }  
});